package com.mipo.dao;

import java.util.List;

import com.mipo.util.PageTools;
import com.mipo.vo.Book;
import com.mipo.vo.BookReview;
import com.mipo.vo.OrderItem;
import com.mipo.vo.Orders;

public interface BookDao {
//	Book querryById(int id) throws Exception;
	public List<Book> searchList(String bookName) throws Exception;

	public List<Book> list(PageTools t,String type) throws Exception;

	public Book queryBook(int id) throws Exception;

	public List<BookReview> querybr(int bookId, int pageNum, int everyPageRows)
			throws Exception;

	public boolean insertBR(BookReview br) throws Exception;

	public boolean queryIsCanBR(int accid, int bookid) throws Exception;

	public int getSumBR(int bookid) throws Exception;

	public List<Book> queryBookListPage(int currentPage, int everyPageRows,
			Book book) throws Exception;
	
	boolean insertOrder(Orders o)throws Exception;
	
	boolean insertOrderItem(OrderItem oi)throws Exception;
	
	int queryBookRows(PageTools t,String type)throws Exception;
	
	boolean insertbook(Book b)throws Exception;
	
	boolean edit(Book b)throws Exception;
	
	boolean editOrderStatus(int status,String orderId)throws Exception;
	
}
